{
 "cells": [
  {
   "cell_type": "code",
   "execution_count": 10,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'xiaosong': {'faceId': '20e76475-59bf-4577-88aa-501b3927e24e',\n",
       "  'faceRectangle': {'top': 131, 'left': 156, 'width': 193, 'height': 255}},\n",
       " 'xiaoma': {'faceId': '880a2ddb-c521-4ef8-b858-0d2448684192',\n",
       "  'faceRectangle': {'top': 121, 'left': 566, 'width': 187, 'height': 257}},\n",
       " 'xiaoyan': {'faceId': '0c55bf46-db06-4fe5-852f-51b3b991dc59',\n",
       "  'faceRectangle': {'top': 313, 'left': 423, 'width': 131, 'height': 180}}}"
      ]
     },
     "execution_count": 10,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "people={}\n",
    "people['xiaosong']={\n",
    "    \"faceId\": \"20e76475-59bf-4577-88aa-501b3927e24e\",\n",
    "    \"faceRectangle\": {\n",
    "      \"top\": 131,\n",
    "      \"left\": 156,\n",
    "      \"width\": 193,\n",
    "      \"height\": 255\n",
    "    }\n",
    "  }\n",
    "people['xiaoma']={\n",
    "    \"faceId\": \"880a2ddb-c521-4ef8-b858-0d2448684192\",\n",
    "    \"faceRectangle\": {\n",
    "      \"top\": 121,\n",
    "      \"left\": 566,\n",
    "      \"width\": 187,\n",
    "      \"height\": 257\n",
    "    }\n",
    "  }\n",
    "people['xiaoyan']={\n",
    "    \"faceId\": \"0c55bf46-db06-4fe5-852f-51b3b991dc59\",\n",
    "    \"faceRectangle\": {\n",
    "      \"top\": 313,\n",
    "      \"left\": 423,\n",
    "      \"width\": 131,\n",
    "      \"height\": 180\n",
    "    }\n",
    "  }\n",
    "people"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 11,
   "metadata": {},
   "outputs": [],
   "source": [
    "import pprint"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 12,
   "metadata": {},
   "outputs": [
    {
     "name": "stdout",
     "output_type": "stream",
     "text": [
      "{'xiaoma': {'faceId': '880a2ddb-c521-4ef8-b858-0d2448684192',\n",
      "            'faceRectangle': {'height': 257,\n",
      "                              'left': 566,\n",
      "                              'top': 121,\n",
      "                              'width': 187}},\n",
      " 'xiaosong': {'faceId': '20e76475-59bf-4577-88aa-501b3927e24e',\n",
      "              'faceRectangle': {'height': 255,\n",
      "                                'left': 156,\n",
      "                                'top': 131,\n",
      "                                'width': 193}},\n",
      " 'xiaoyan': {'faceId': '0c55bf46-db06-4fe5-852f-51b3b991dc59',\n",
      "             'faceRectangle': {'height': 180,\n",
      "                               'left': 423,\n",
      "                               'top': 313,\n",
      "                               'width': 131}}}\n"
     ]
    }
   ],
   "source": [
    "pprint.pprint(people)"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 13,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'faceId': '20e76475-59bf-4577-88aa-501b3927e24e',\n",
       " 'faceRectangle': {'top': 131, 'left': 156, 'width': 193, 'height': 255}}"
      ]
     },
     "execution_count": 13,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "people['xiaosong']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 14,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "'20e76475-59bf-4577-88aa-501b3927e24e'"
      ]
     },
     "execution_count": 14,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "people['xiaosong']['faceId']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": 18,
   "metadata": {},
   "outputs": [
    {
     "data": {
      "text/plain": [
       "{'faceId': '880a2ddb-c521-4ef8-b858-0d2448684192',\n",
       " 'faceRectangle': {'top': 121, 'left': 566, 'width': 187, 'height': 257}}"
      ]
     },
     "execution_count": 18,
     "metadata": {},
     "output_type": "execute_result"
    }
   ],
   "source": [
    "people['xiaoma']"
   ]
  },
  {
   "cell_type": "code",
   "execution_count": null,
   "metadata": {},
   "outputs": [],
   "source": []
  }
 ],
 "metadata": {
  "kernelspec": {
   "display_name": "Python 3",
   "language": "python",
   "name": "python3"
  },
  "language_info": {
   "codemirror_mode": {
    "name": "ipython",
    "version": 3
   },
   "file_extension": ".py",
   "mimetype": "text/x-python",
   "name": "python",
   "nbconvert_exporter": "python",
   "pygments_lexer": "ipython3",
   "version": "3.8.3"
  }
 },
 "nbformat": 4,
 "nbformat_minor": 4
}
